/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2014-2015 abel533@gmail.com
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

package com.kerbores.utils.baidu.echarts;

import java.util.HashMap;
import java.util.Map;

/**
 * 缩放漫游组件，仅对地图有效
 *
 * @author liuzh
 */
public class RoamController extends Basic<RoamController> implements Component {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer width;
	private Integer height;
	private String fillerColor;
	private String handleColor;
	private Integer step;
	private Map<String, Boolean> mapTypeControl;

	/**
	 * 获取width值
	 */
	public Integer width() {
		return this.width;
	}

	/**
	 * 设置width值
	 *
	 * @param width
	 */
	public RoamController width(Integer width) {
		this.width = width;
		return this;
	}

	/**
	 * 获取height值
	 */
	public Integer height() {
		return this.height;
	}

	/**
	 * 设置height值
	 *
	 * @param height
	 */
	public RoamController height(Integer height) {
		this.height = height;
		return this;
	}

	/**
	 * 获取fillerColor值
	 */
	public String fillerColor() {
		return this.fillerColor;
	}

	/**
	 * 设置fillerColor值
	 *
	 * @param fillerColor
	 */
	public RoamController fillerColor(String fillerColor) {
		this.fillerColor = fillerColor;
		return this;
	}

	/**
	 * 获取handleColor值
	 */
	public String handleColor() {
		return this.handleColor;
	}

	/**
	 * 设置handleColor值
	 *
	 * @param handleColor
	 */
	public RoamController handleColor(String handleColor) {
		this.handleColor = handleColor;
		return this;
	}

	/**
	 * 获取step值
	 */
	public Integer step() {
		return this.step;
	}

	/**
	 * 设置step值
	 *
	 * @param step
	 */
	public RoamController step(Integer step) {
		this.step = step;
		return this;
	}

	/**
	 * 获取mapTypeControl值
	 */
	public Map<String, Boolean> mapTypeControl() {
		return this.mapTypeControl;
	}

	/**
	 * 设置mapTypeControl值
	 *
	 * @param key
	 *            地名
	 * @param value
	 *            true|false
	 */
	public RoamController mapTypeControl(String key, Boolean value) {
		if (this.mapTypeControl == null) {
			this.mapTypeControl = new HashMap<String, Boolean>();
		}
		this.mapTypeControl.put(key, value);
		return this;
	}

	/**
	 * 获取width值
	 */
	public Integer getWidth() {
		return width;
	}

	/**
	 * 设置width值
	 *
	 * @param width
	 */
	public void setWidth(Integer width) {
		this.width = width;
	}

	/**
	 * 获取height值
	 */
	public Integer getHeight() {
		return height;
	}

	/**
	 * 设置height值
	 *
	 * @param height
	 */
	public void setHeight(Integer height) {
		this.height = height;
	}

	/**
	 * 获取fillerColor值
	 */
	public String getFillerColor() {
		return fillerColor;
	}

	/**
	 * 设置fillerColor值
	 *
	 * @param fillerColor
	 */
	public void setFillerColor(String fillerColor) {
		this.fillerColor = fillerColor;
	}

	/**
	 * 获取handleColor值
	 */
	public String getHandleColor() {
		return handleColor;
	}

	/**
	 * 设置handleColor值
	 *
	 * @param handleColor
	 */
	public void setHandleColor(String handleColor) {
		this.handleColor = handleColor;
	}

	/**
	 * 获取step值
	 */
	public Integer getStep() {
		return step;
	}

	/**
	 * 设置step值
	 *
	 * @param step
	 */
	public void setStep(Integer step) {
		this.step = step;
	}

	/**
	 * 获取mapTypeControl值
	 */
	public Map<String, Boolean> getMapTypeControl() {
		return mapTypeControl;
	}

	/**
	 * 设置mapTypeControl值
	 *
	 * @param mapTypeControl
	 */
	public void setMapTypeControl(Map<String, Boolean> mapTypeControl) {
		this.mapTypeControl = mapTypeControl;
	}
}
